<?php /* Create User Controller */
	require_once('modules/users/actions/create/scripts/validate-user.php');
	if (isset($_POST['form-action'])) { //se envio formulario
		$validacion = validarUsuario();
		if (!empty($validacion)) { //fallo validacion
			$arr_roles = $user->getRoles();
			require_once('modules/users/actions/create/view/create-user.php');
		} else { //si valido correcto
			$user->create();
			require_once('modules/users/actions/list/index.php');
		}
	} else { //pre-carga
		$arr_roles = $user->getRoles();
		require_once('modules/users/actions/create/view/create-user.php');
	}
?>